{% extends 'base.html' %}

{% block title %} {{ project.name.value }} {% endblock %}

{% block content %}

<h3> 
	{% if editable %}
		Edit
		
	{% elif deletable %}
		Delete
	{% else  %}	
	    View
	{% endif %}
	Project
</h3>

{% if editable %}
	<form method='post'> {% csrf_token %}
{% elif deletable %}
	<form method='post'> {% csrf_token %}	
{% endif %}

<fieldset name="project">

{{ project.as_p }}

</fieldset>


{% if editable %}
	<input type='submit' value='Save'>
	</form>
{% elif deletable %}
	<input type='submit' value='Delete'>
	</form>
{% else %}
	<a href="/projects/">Back</a>
{% endif %}

{% endblock %}